home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / fchmod.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Fchmod(2)                  Oct. 7, 1991                 Fchmod(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Fchmod - set file access permissions
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <filesys.h>
  12.  
  13.        LONG Fchmod( char *name, WORD mode );
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        _✓F_✓c_✓h_✓m_✓o_✓d  changes  the  file access permissions for the file
  17.        named _✓n_✓a_✓m_✓e.  The new access permissions are given  in  the
  18.        word _✓m_✓o_✓d_✓e, which may be constructed by or'ing together the
  19.        following symbolic constants (defined in filesys.h):
  20.  
  21.        S_IRUSR,
  22.               Read, write, and execute permission  (respectively)
  23.               for the owner of the file.
  24.  
  25.        S_IRGRP,
  26.               Read,  write, and execute permission (respectively)
  27.               for the file's group.
  28.  
  29.        S_IROTH,
  30.               Read, write, and execute permission  for  everybody
  31.               else.
  32.  
  33.        Note  that not all file systems support all of these bits;
  34.        bits not supported by a file system will be ignored.
  35.  
  36.        Note also that "execute" permission for a directory  means
  37.        permission to search the directory for a file name or name
  38.        component.
  39.  
  40. R✓RE✓ET✓TU✓UR✓RN✓NS✓S
  41.        0 on success
  42.  
  43.        EACCDN if the calling process has an effective  uid  which
  44.        differs from the owner of the file and which is not 0.
  45.  
  46.        EFILNF if the file is not found
  47.  
  48.        EPTHNF if the path to the file is not found.
  49.  
  50. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  51.        _✓F_✓a_✓t_✓t_✓r_✓i_✓b(2), _✓F_✓x_✓a_✓t_✓t_✓r(2)
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.